package org.example.mall.admin.service.manage;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.mall.admin.model.entity.manage.Account;
import org.example.mall.admin.model.entity.manage.AccountAuth;

/**
 * <p>
 * 认证类型 服务类
 * </p>
 *
 * @author hzq
 * @since 2021-12-29
 */
public interface AccountAuthService extends IService<AccountAuth> {

    boolean editAccountEmail(Account account);

    /**
     * 删除认证类型与用户的关联
     *
     * @param accountId 员工id
     * @param authType  认证烈性
     */
    boolean delRelation(Integer accountId, String authType);

    /**
     * 删除员工所有认证信息
     *
     * @param accountId 员工id
     */
    boolean delRelation(Integer accountId);

    boolean editAccountPhone(Account account);

    boolean addRelation(Account account, AccountAuth auth);

    AccountAuth getByCondition(String authType, String principal);

}
